home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Libraries
/
Dots & Pixels
/
headers
/
outputfile.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-29
|
514b
|
28 lines
#pragma once
//
// my first stream subclass!! (if it worked)
//
#define it_doesnt_work
#ifdef it_doesnt_work
class outputfile
#else
class outputfile : public ofstream
#endif
{
public:
//
// Note: the name_locked flag only makes sense on a Macintosh
//
outputfile( char *postfix, Boolean name_locked = true);
char *operator()() const;
private:
char filename[ 256];
static void set2chars( const int n, char *two_chars);
static void setoutfilename( char *yymmdd_hhmmss_plus_postfix);
};